import { computed as c } from "vue";
import { _ as n } from "./kafka.vue_vue_type_script_setup_true_lang.DrTjPANP.js";
import { _ as r } from "./attr-item.vue_vue_type_script_setup_true_lang.ABkxhIcO.js";
import { p as d } from "./index.Bbfhrq76.js";
const g = (a) => ({
  graphShadow: a.graphShadow,
  graphForm: a.graphForm,
  cell: a.cell
}), _ = (a) => {
  let p = [
    {
      parameter: "bootstrap.servers",
      message: "请选择kafka连接"
    },
    {
      parameter: "topic",
      message: "请选择TOPIC"
    }
  ];
  const s = [
    "org.apache.nifi.processors.kafka.pubsub.ConsumeKafka_2_6",
    "org.apache.nifi.processors.kafka.pubsub.PublishKafka_2_6"
  ], e = c(() => !a.isUseOpenMetadata.value), i = ["topic", "bootstrap.servers", "group.id"], m = [
    { tag: "div", "v-if": a.isUseOpenMetadata, cls: [
      {
        tag: n,
        ":formdata": "formData",
        prop: "config.properties",
        isFormElem: !1,
        label: "",
        ":data": "formData",
        setup({ params: o }) {
          return { graphShadowCell: g(o) };
        },
        ":graphShadowCell": "graphShadowCell"
      }
    ] },
    { tag: r, prop: "bootstrap.servers", ":data": "formData.config.properties", "v-if": e },
    { tag: r, prop: "topic", ":data": "formData.config.properties", "v-if": e },
    { tag: r, prop: "group.id", ":data": "formData.config.properties", "v-if": e }
  ];
  return { name: s, excludeKeys: i, selfFormColumn: m, hooksSubmit: (o, f) => {
    var t;
    let l = (t = f.event.form) == null ? void 0 : t.data.value[o.id].config.properties;
    d(l, p);
  } };
};
export {
  _ as default
};
